package com.example.demo.repository;

import com.example.demo.entity.Resource;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Map;

public interface ResourceRepository extends JpaRepository<Resource,Integer> {

@Query(value = "select * from resource where name = %?1;",nativeQuery = true)
    Resource findByName(String name);
}
